//
//  Toast.swift
//  SwiftExercise
//
//  Created by 罗宗庆 on 2021/6/24.
//

import UIKit
import Toast_Swift
class Toast: NSObject {
    
    
    class func showToast(msg:String) {
        UIApplication.getTopViewController()?.view.makeToast(msg,duration:1.5,position:.center)
    }
    class func showActivity(){
        UIApplication.getTopViewController()?.view.makeToastActivity(.center)
    }
    class func hiddenActivity(){
        UIApplication.getTopViewController()?.view.hideToastActivity()
    }
}

